package pers.ljf.escloud.common.req;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class DepartmentSaveReq {

    private Long id;

    @NotEmpty(message = "部门名不可为空")
    private String name;

    @NotNull(message = "父部门不可为空")
    private Long parentId;

    @NotNull(message = "管理员用户名不可为空")
    private String adminUserName;

    @NotNull(message = "部门总空间不可为空")
    //单位MB
    private Long spaceAmount;
}
